package com.changgou.exception;

import com.changgou.entity.ResultCode;

/**
 * @ClassName BusinessExceptionUtil
 * @Auther: Jiang YiLin
 * @Date: 2019/11/16  18:35
 * @Description: 抛出自定义异常工具类
 */
public class BusinessExceptionUtil {

    private BusinessExceptionUtil(){

    }

    /**
     * @MethodName com.changgou.exception.BusinessExceptionUtil : throwBusinessException
     * @Author Jiang YiLin
     * @Date 18:36  2019/11/16
     * @Param [resultCode]
     * @Return void
     * @Description 抛出自定义异常
     **/
    public static void throwBusinessException(ResultCode resultCode){

        throw new BusinessException(resultCode);
    }

}
